import service from '@/utils/request'

// @Tags Fault_file_struct
// @Summary 创建Fault_file_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Fault_file_struct true "创建Fault_file_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fault_file_struct/createFault_file_struct [post]
export const createFault_file_struct = (data) => {
  return service({
    url: '/fault_file_struct/createFault_file_struct',
    method: 'post',
    data
  })
}

// @Tags Fault_file_struct
// @Summary 删除Fault_file_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Fault_file_struct true "删除Fault_file_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fault_file_struct/deleteFault_file_struct [delete]
export const deleteFault_file_struct = (data) => {
  return service({
    url: '/fault_file_struct/deleteFault_file_struct',
    method: 'delete',
    data
  })
}

// @Tags Fault_file_struct
// @Summary 删除Fault_file_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Fault_file_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fault_file_struct/deleteFault_file_struct [delete]
export const deleteFault_file_structByIds = (data) => {
  return service({
    url: '/fault_file_struct/deleteFault_file_structByIds',
    method: 'delete',
    data
  })
}

// @Tags Fault_file_struct
// @Summary 更新Fault_file_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Fault_file_struct true "更新Fault_file_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /fault_file_struct/updateFault_file_struct [put]
export const updateFault_file_struct = (data) => {
  return service({
    url: '/fault_file_struct/updateFault_file_struct',
    method: 'put',
    data
  })
}

// @Tags Fault_file_struct
// @Summary 用id查询Fault_file_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Fault_file_struct true "用id查询Fault_file_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /fault_file_struct/findFault_file_struct [get]
export const findFault_file_struct = (params) => {
  return service({
    url: '/fault_file_struct/findFault_file_struct',
    method: 'get',
    params
  })
}

// @Tags Fault_file_struct
// @Summary 分页获取Fault_file_struct列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Fault_file_struct列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fault_file_struct/getFault_file_structList [get]
export const getFault_file_structList = (params) => {
  return service({
    url: '/fault_file_struct/getFault_file_structList',
    method: 'get',
    params
  })
}
